<!--
 * @Description: 
 * @Author: 李成
 * @CreateTime: 2025-02-27 16:30:53
 * @LastEditors: 李成
 * @UpdateTime: 2025-02-27 16:30:53
-->
<template>
    <div>这是app.vue</div>
    <button @click="jump">跳转到about</button>
    <button @click="jump2">跳转到home</button>
  <RouterView />
</template>

<script lang='ts' setup>
import { useRouter } from 'vue-router'
const router = useRouter()
const jump = () => {
    router.push('/about')
}
const jump2 = () => {
    router.push('/home') 
}
</script>

<style lang="scss" scoped>

</style>